<%@page import="bean.MemberDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="StyleSheet" href="./css/LeftMenu.css" type="text/css"/>
</head>
<body>
<div class= "container">
	<div align="center">
	<div id="set1" >
		<jsp:useBean id="member" class= "bean.MemberVO" scope="page"></jsp:useBean>
		<jsp:setProperty property="*" name="member"/>
	    <%
	    	MemberDTO mdto = new MemberDTO();
	    	    mdto.setVo(member);
	    	    boolean bolean = mdto.login();
	    	  
	    	    if(bolean){
	    	    	session.setAttribute("sessionMid", member.getMid());
	    	    	pageContext.forward("../jsp/index.jsp");
	    	    }
	    	    else{
	    	    	pageContext.forward("./index.jsp");
	    	    }
	    %>
    </div>
</div>
</body>
</html>